package com.hualan.sfzy.mapper;


import com.hualan.sfzy.model.entity.PsychologyTestResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Ahao
* @description 针对表【psychology_test_result】的数据库操作Mapper
* @createDate 2025-07-03 17:40:05
* @Entity com.hualan.domain.PsychologyTestResult
*/
@Mapper
public interface PsychologyTestResultMapper extends BaseMapper<PsychologyTestResult> {

    /*多表根据id查询*/
    PsychologyTestResult  selectByIdDuo(Integer id);


    /*多表查询(分页 多表)*/
    List<PsychologyTestResult> selectDuo(PsychologyTestResult record);

    /*根据用户id查询测评结果*/
    List<PsychologyTestResult> selByUserId(@Param("userId") Integer userId, @Param("testId") Integer testId);

    /*根据用户id查询测评结果*/
    List<PsychologyTestResult> selectByUserId(@Param("userId") Integer userId);

}
